﻿@model VipSoft.Membership.Core.Entity.Role
@using VipSoft.CMS.Core.Enum
@using VipSoft.Web.Areas.VipSoft.Controllers
@using VipSoft.WebUtility
@{
    ViewBag.Title = "角色维护";
    Layout = "~/Areas/VipSoft/Views/Shared/_AdminLayout.cshtml";
}
@section Style {

}
<div class="widget-box">
    <div class="widget-header widget-header-small">
        <h5 class="widget-title smaller">@ViewBag.SubTitle</h5>

        <div class="widget-toolbar no-border">
            <ul class="nav nav-tabs" id="myTab">
                <li>
                    <a href="@Url.Action("List", new { cid = @Request.RequestContext.RouteData.Values["cid"], mid = @Request.RequestContext.RouteData.Values["mid"] })">返回</a>
                </li>
            </ul>
        </div>
    </div>
    <div class="widget-body">
        <div class="widget-main padding-6">
            <form id="frmRole" method="post" class="form-horizontal">

                <div class="form-group">
                    <label class="col-sm-1 control-label no-padding-right">@Html.LabelFor(model => model.Code)</label>
                    <div class="col-sm-11">
                        @Html.TextBoxFor(model => model.Code, new { @class = "form-control input-sm" })
                        @Html.ValidationMessageFor(model => model.Code)
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-1 control-label no-padding-right">@Html.LabelFor(model => model.Name)</label>
                    <div class="col-sm-11">
                        @Html.TextBoxFor(model => model.Name, new { @class = "form-control input-sm" })
                        @Html.ValidationMessageFor(model => model.Name)
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-1 control-label no-padding-right">@Html.LabelFor(model => model.Description)</label>
                    <div class="col-sm-11">
                        @Html.TextBoxFor(model => model.Description, new { @class = "form-control input-sm" })
                        @Html.ValidationMessageFor(model => model.Description)
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-1 control-label no-padding-right">状态</label>
                    <div class="col-sm-11">
                        <div>
                            <input type="radio" checked name="Status" value="1" />
                            启用
                            <input type="radio" name="Status" value="0" />
                            禁用
                        </div> 
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-1 control-label no-padding-right">@Html.ValidationSummary(true)</label>
                    <div class="col-sm-11">
                        <input type="hidden" id="mid" value="@Request.RequestContext.RouteData.Values["mid"]" />
                        <input type="hidden" id="cid" value="@Request.RequestContext.RouteData.Values["cid"]" />

                        @Html.HiddenFor(model => model.ID)
                        <input type="submit" name="btnSubmit" value="保存" id="btnSave" class="btn btn-primary" />
                        &nbsp;<input name="重置" type="reset" class="btn btn-danger" value="重 置" />
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

@section Script {

    <script src="@Url.Content("~/Resource/UEditor/editor_config.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Resource/UEditor/_examples/editor_api.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui.custom.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/bootstrap-colorpicker.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/bootstrap-datepicker.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.icheck.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.jpanelmenu.min.js")" type="text/javascript"></script> 

    <script src="@Url.Content("~/Resource/UEditor/third-party/swfupload/swfupload.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Admin/swfupload.handlers.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.form.js")" type="text/javascript"></script>
   
    <script src="@Url.Content("~/Scripts/Admin/VipSoft.Membership.Role.js")" type="text/javascript"></script>

}
